package cc.rengu.igas.channel.uprk.core.packswitch;

import cc.rengu.jradp.packetswitch.IncomingPackSwitchImpl;
import cc.rengu.jradp.packetswitch.OutgoingPackSwitchImpl;
import cc.rengu.utility.log.RgLog;
import cc.rengu.utility.log.RgLogger;

/**
 * @author wukefan
 * @version 1.0.0
 * @date 2021/4/27 10:18
 * 银联风险OPENAPI产品处理
 */
public class UprkOpenApiClientPackswitch implements IncomingPackSwitchImpl, OutgoingPackSwitchImpl {
    @Override
    public byte[] beforeInComPackSwitch(byte[] bytes) throws Exception {
        RgLogger rglog = RgLog.getLogger(this.getClass().getName());
        rglog.debug("输入信息 = <{}>", new String(bytes));
        return bytes;
    }

    @Override
    public int afterInComPackSwitch() throws Exception {
        return 0;
    }

    @Override
    public int beforeOutgoPackSwitch() throws Exception {
        return 0;
    }

    @Override
    public byte[] afterOutgoPackSwitch(byte[] bytes) throws Exception {
        RgLogger rglog = RgLog.getLogger(this.getClass().getName());
        rglog.debug("输出信息 = <{}>", new String(bytes));
        return bytes;
    }
}
